class_name StateTransition
extends RefCounted

## 标识该状态转换的名称
var name: String

## 是否激活
var active: bool = true


func _init(init_name: String) -> void:
	name = init_name


func try_condition() -> bool:
	return active and _try_condition()


func try_transition() -> String:
	return _try_transition()


func on_transit() -> void:
	_on_transit()


#region Need to override
func _try_condition() -> bool:
	return false


func _try_transition() -> String:
	return ""


func _on_transit() -> void:
	pass
#endregion
